﻿@model VMC.Domain.Model.DataStructure.ComplexDataTypeManagement

@{
    ViewBag.Title = "Data Processor";
    string linetype = "oddrow";

<p>Currently this application only supports one-to-one mapping of data source from XML-to-CSV and vice versa for a selected data types.</p>
<p>You can download source code or binary for each data type to perform this operation.</p>

  
    if (Model.Items != null)
    {
            <div class="one-half last">
                <table class="list-table" >
                    <tr class="header-row">
                        <th  class="list-header-column">Data Types</th>
                        <th class="list-header-column"></th>
                    </tr>
                    @foreach (var item in Model.Items.List.OrderBy(c => c.IsPublic))
                    { 
                    
                        <tr class="list-row @linetype ">	
                           <td class="list-column">[@Html.DisplayFor(modelItem => item.VariableName)] @Html.DisplayFor(modelItem => item.Name)</td>
                           <td class="list-column"> 
                                <span class="action-buttons">
                                     @VMCHelper.ActionIconButton(Url, item.ID, "Source", "Download Source Code", "action-icon-source")
                                     @VMCHelper.ActionIconButton(Url, item.ID, "Binary", "Download Executables", "action-icon-exe")
                                </span>
                            </td>
	                    </tr>
                    
                        if (linetype == "oddrow") { linetype = "evenrow"; } else { linetype = "oddrow"; }
                    }
                </table>
            </div>
    }
}

<pre class="one-half">@ViewData["Source"]</pre>